package das;

import java.util.Scanner;

public class Choujiang {
	public static void goDraw(int id){
		if (Denglu.biaoshi) {
			System.out.println("[会员系统>>抽奖]");
			System.out.println("请输入你的会员卡号：");
			Scanner input_card = new Scanner(System.in);
			int number = input_card.nextInt();
			
			
			int[] luckyNumbers = new int [5];
			int i = 0 ;
			System.out.println("\n本日的幸运数字为：");
			for (i = 0; i < luckyNumbers.length; i++) {
				luckyNumbers[i] = (int) (Math.random() * (Zhuche.max - Zhuche.min)) + Zhuche.min;
				System.out.println(luckyNumbers[i] + ",");
			}
			for (i = 0; i < luckyNumbers.length; i++) {
				if (Zhuche.kahao == luckyNumbers[i]) {
					System.out.println("恭喜中奖！");
					break;
				}
			}
			if (i ==luckyNumbers.length) {
				System.out.println("\n很遗憾，你不是今日的幸运会员");
			}
			
			
		}else {
			System.out.println("请先注册,登陆,再抽奖!");
			String answer = Chesi.dado();
			if ("n".equals(answer)) {
				System.out.println("***********************");
				System.out.println("系统退出,谢谢使用!");
			}else if ("y".equals(answer)) {
				Zhuche.reg(id-2);
			}
		}
	}

	
}
